// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_WORKGROUP_USER
// * CreateDate    : 2014-06-05 18:30:24
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:24
// * LastChanger   : 2014-06-05 18:30:24
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class ProdWorkgroupUserEntity : EntityBase
    {
        public ProdWorkgroupUserTable TableSchema
        {
            get
            {
                return ProdWorkgroupUserTable.Current;
            }
		}
		
		public ProdWorkgroupUserEntity()
        {

        }
		
		public ProdWorkgroupUserEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.ProdWorkgroupId = Convert.ToString(CommonFunctions.ToObject(dr["PROD_WORKGROUP_ID"]));
			this.UserId = Convert.ToString(CommonFunctions.ToObject(dr["USER_ID"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.UserName = Convert.ToString(CommonFunctions.ToObject(dr["USER_NAME"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }
		
		public ProdWorkgroupUserEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.Id = Convert.ToString(CommonFunctions.ToObject(dr["Id"]));
			this.ProdWorkgroupId = Convert.ToString(CommonFunctions.ToObject(dr["PROD_WORKGROUP_ID"]));
			this.UserId = Convert.ToString(CommonFunctions.ToObject(dr["USER_ID"]));
			this.UserNo = Convert.ToString(CommonFunctions.ToObject(dr["USER_NO"]));
			this.UserName = Convert.ToString(CommonFunctions.ToObject(dr["USER_NAME"]));
			this.Status = Convert.ToString(CommonFunctions.ToObject(dr["STATUS"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdWorkgroupUserTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string Id
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_Id)); }
            set { SetData(ProdWorkgroupUserTable.C_Id, value); }
        }
		
        [DataMember]
        public string ProdWorkgroupId
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_PROD_WORKGROUP_ID)); }
            set { SetData(ProdWorkgroupUserTable.C_PROD_WORKGROUP_ID, value); }
        }
		
        [DataMember]
        public string UserId
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_USER_ID)); }
            set { SetData(ProdWorkgroupUserTable.C_USER_ID, value); }
        }
		
        [DataMember]
        public string UserNo
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_USER_NO)); }
            set { SetData(ProdWorkgroupUserTable.C_USER_NO, value); }
        }
		
        [DataMember]
        public string UserName
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_USER_NAME)); }
            set { SetData(ProdWorkgroupUserTable.C_USER_NAME, value); }
        }
		
        [DataMember]
        public string Status
        {
            get { return Convert.ToString(GetData(ProdWorkgroupUserTable.C_STATUS)); }
            set { SetData(ProdWorkgroupUserTable.C_STATUS, value); }
        }
		
		#endregion
	}
	
	
}	

